package com.share.cloudStorage.shares.model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

@Data
@TableName("shares")
public class Shares {
    @TableId(type = IdType.AUTO)
    private Integer shareId;
    private Integer userId;
    private Integer fileId;
    private String shareLink;
    private String sharePassword;
    private Date expirationTime;
    private Date createTime;
    //0是需要密码 1是不需要密码
    private Integer isPasswordProtected;
    @TableField(exist = false)
    private Integer validType;
    //逻辑删除
    @TableLogic(value = "0", delval = "1")
    private Integer status;

    @TableField(exist = false)
    private String username;
    @TableField(exist = false)
    private String photo;
    @TableField(exist = false)
    private String fileName;
    @TableField(exist = false)
    private Boolean currentUser;
    @TableField(exist = false)
    private String fileType;
}

